import request from '../utils/request';

// 获取所有频道
export const getChannelsApi = () => {
  return request({
    url: '/v1_0/channels',
  });
};

// 获取文章列表
export const getArticlesApi = (params) => {
  return request({
    url: '/v1_0/mp/articles',
    params,
  });
};

// 删除文章
export const delArticleByIdAPI = (id) => {
  return request({
    url: `/v1_0/mp/articles/${id}`,
    method: 'DELETE',
  });
};
